<template>
    <div class="box">
        <img alt="" src="../../assets/images/error-images/404.png" />
        <el-button type="primary" class="toHome" @click="goHome">返回首页</el-button>
    </div>
</template>

<script lang="ts" setup>
import { useRouter } from 'vue-router'

let $router = useRouter()

const goHome = () => {
    $router.push('/chat')
}
</script>

<style scoped lang="scss">
.box {
    width: 100vw;
    height: 100vh;
    background: rgb(112, 97, 154);
    @include flex-layout(flex, center, normal, nowrap, column);

    img {
        width: 600px;
        height: 600px;
    }

    .toHome {
        width: 8rem;
        height: 3rem;
        border-radius: 1rem;
    }
}
</style>
